package com.rd.student.dashuju.wangbo.exercise0728;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;

public class TestIn {

    public static void main(String[] args) throws IOException {
//        Scanner scanner = new Scanner(System.in);
//        System.out.println(System.out);
        InputStream is = System.in;
        InputStreamReader reader = new InputStreamReader(is);
        BufferedReader br = new BufferedReader(reader);

        String line = null;
        while (true){
            line = br.readLine();
            if (line == null) break;
            if (line.equals("exit")){
                System.exit(0);
            }
            System.out.println(line);
        }
        reader.close();
        br.close();
    }
}
